import React from 'react';
import routes from './routes';
import ReactDOM from 'react-dom';
import { AppContainer } from 'react-hot-loader';
import {Provider} from 'react-redux';
import configureStore from './redux/configureStore';
const store = configureStore();
ReactDOM.render( 
    <AppContainer>
    <Provider store={store}>
    {routes}
    </Provider>
    </AppContainer>
    ,
    document.getElementById('root'))
if(module.hot){
    module.hot.accept();
}